package me.softwareengineer.guice.rendering.listener;

import java.util.Map;

import me.softwareengineer.guice.rendering.domain.ListType;

/**
 * Called when list element begin
 * 
 * @author yadtahir
 * 
 *         <pre>
 * This class is thread-safe and immutable.
 * </pre>
 */
public class StartListEvent extends Event implements
		StartElementEvent {
	/**
	 * Holds the type of the list
	 */
	private ListType listType;

	public StartListEvent(ListType listType, Map<String, String> properties) {
		super(properties);
		this.listType = listType;

	}

	/**
	 * 
	 * @return the type of the list. For more info, see {@link ListType}
	 */
	public ListType getListType() {
		return listType;
	}

}
